#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def printCoords(event):
    print 'event.char=', event.char
    print 'event.keycode=', event.keycode

bt1 = Button(root, text='Press Shift-Up')
bt1.bind('<Shift-Up>', printCoords)

bt2 = Button(root, text='Press Control-Alt-a')
bt2.bind('<Control-Alt-a>', printCoords)

# bt3 = Button(root, text='Press Control-Alt')
# bt3.bind('<Control-Alt>', printCoords)

bt1.focus_set()
bt1.grid()
bt2.grid()
# bt3.grid()

root.mainloop()
